import { useGetLessonById } from "@/entities/lesson/model/useGetLessonById"
import { UiHeader } from "@/shared/Uikit/UiHeader"
import { UiSpinner } from "@/shared/Uikit/UiSpinner"
import LessonContent from "@/widget/LessonContent/ui/LessonContent"
import { useEffect } from "react"

export default function EditLessonContent({ params }: { params: { lessonId: number } }) {
    const lessonId = params.lessonId

    return (
        <>
            <UiHeader 
            title='Редактор урока'
            backButton
            backUrl="/setupeducationalprogram"
            />
            <LessonContent lessonId={lessonId} editable={true} />
        </>
    )
}
